package com.example.doma.mapper;

import com.example.doma.pojo.student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface studentMapper {


    List<student> getstudents();
    student getstudentByid(@Param("id") int id);
    int update(@Param("student") student student);
    int add(@Param("st") Map<String,Object> st);
    int adds(List<student> students);
    int deleteByid(@Param("id") int id);
    int getpages();
    List<student> getstudentBydorm(@Param("apart_num") String apart_num,@Param("dormi_num")int dormi_num);

}
